function loading(tips, style) {
    return [{
        value: tips,
        itemStyle: {
            normal: {
                color: style.color,
                shadowBlur: 10,
                shadowColor: style.color
            }
        }
    }, {
        value: 100 - tips,
        itemStyle: {
        normal: {
          color: '#000',
          opacity: 0
        }}
    }];
}

define(function() {

  return function(num, style) {
    return {
      series: [{
          name: 'loading',
          type: 'pie',
          radius: ['30%', '32%'],
          hoverAnimation: false,
          label: {
              normal: {
                  show: false,
              }
          },
          data: loading(num, style),
      }]
    }
  }
})